package com.itheima.admin.service;

import com.itheima.xo.pojo.Category;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author :WuJunJie
 * packageName :com.itheima.admin.service
 * fileName :categoryService
 * creationTime :2022-10-28 16:25
 */
@Transactional
public interface CategoryService {

    Boolean add (Category category);

    Boolean delete(String id);

    Boolean update(Category category);

    List<Category> findAll();

    Category findById(String id);

    Category findByName(String name);


    Boolean cancelDelete(String id);
}
